package com.neusoft.yuejian_01.service;

import com.neusoft.yuejian_01.javabean.CollectBean;
import com.neusoft.yuejian_01.javabean.IsCollectBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by MARIA on 2017/10/21.
 */

public interface CollectService {
    @GET("Attention/getIsCollected")
    Call<IsCollectBean> ifCollected(@Query("u_id") String u_id,
                                    @Query("select_id") String select_id,
                                    @Query("flag") String flag);
    //收藏帖子
    @GET("Attention/userCollectPost")
    Call<CollectBean> doCollect(@Query("u_id") int u_id,
                                      @Query("p_id") String p_id);

}

